import { Column, Entity, Index, PrimaryGeneratedColumn } from "typeorm";

@Index("idx_furniture_id", ["apartmentFurnitureId"], {})
@Index("idx_group_id", ["apartmentGroupId"], {})
@Entity("apartment_furniture_layout", { schema: "cbox" })
export class ApartmentFurnitureLayout {
  @PrimaryGeneratedColumn({ type: "int", name: "id", unsigned: true })
  id: number;

  @Column("int", { name: "apartment_furniture_id", unsigned: true })
  apartmentFurnitureId: number;

  @Column("int", { name: "apartment_group_id", unsigned: true })
  apartmentGroupId: number;
}
